package Three;

class Rectangle {
	private int width;
	private int length;
	
	@Override
	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}
	public Rectangle(int width,int length){
		this.width=width;
		this.length=length;
	}
	
	public int getPerimeter(){
		return 2*(length+width);
	}
	public int getArea(){
		return width*length;
	}
}
